#include <QtGui/QApplication>
#include <QDir>
#include <QDebug>
#include "mainwindow.h"
#include <QSplashScreen>
#include <QStandardItemModel>
#include <QMessageBox>


int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
        //
        // change the plugins path (add the installation directory)
        QStringList list_path ;
        QDir dir = QDir(qApp->applicationDirPath()+"/QtPlugins/");
        list_path << dir.absolutePath () << a.libraryPaths ();
        a.setLibraryPaths( list_path  );
        QPixmap pixmap(":/new/prefix1/splash");
    QSplashScreen s(pixmap,Qt::WindowStaysOnTopHint);
    s.show();
    a.processEvents();

    s.showMessage(a.trUtf8("Загрузка данных..."));
    a.processEvents();
    MainWindow w(0);
    a.processEvents();
    s.finish(&w);
    w.show();

    return a.exec();
}
